<template>
  <el-menu 
    mode="horizontal"
    background-color="#409EFF"
    text-color="#F2F6FC"
    active-text-color="#F56C6C">
    <el-menu-item @click="goLogin()">
      <i class="el-icon-user"></i>
      <span slot="title">登陆</span>
    </el-menu-item>
    <el-menu-item>
      <i class="el-icon-tickets"></i>
      <span slot="title">注册</span>
    </el-menu-item>
  </el-menu>
</template>

<script>
export default {
  data () {
    return {
      goLogin() {
        this.$router.push('/login');
        // const that = this
        // const newsUrl = that.$router.resolve({
        //   path:'/login',
        // })
        // window.open(newsUrl.href);
      }
    }
  },
  methods:{

  }
}
</script>

<style scoped>
i {
  color: white;
}
</style>